package com.base;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 使用RabbitMq 
 * 1:引入amqp  RabbitAutoConfiguration就会自动生效
 * 2:给容器中自动配置了
 * 		RabbitTemplate
 * 		AmqpAdmin
 * 		CachingConnectionFactory
 * 		RabbitMessagingTemplate
 * 3:使用@EnableRabbit 开启rabbitmq
 * 4:监听消息 使用@RabbitListener 必须要开启@EnableRabbit
 * @ClassName: Application
 * @Description: 
 * @Author xuyou
 * @DateTime 2020年8月23日 下午4:59:26
 */
@EnableRabbit
@SpringBootApplication
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}

}
